import request from './public'
// 登陆
export const userLogin = (params) => {
  return request.post('/user.login', params)
}
// 退出登陆
export const loginOut = (params) => {
  return request.post('/user.logout', params)
}
// 用户信息
export const userInfo = (params) => {
  return request.post('/user.info', params)
}
// 注册账号
export const register = (params) => {
  return request.post('/user.reg', params)
}
// 首页接口
export const productHome = (params) => {
  return request.get('/pc.getpageconfig', params)
}
//游戏专区：全部游戏
export const listGame = (params) => {
  return request.get('/api/home/listGame',params)
}
//游戏专区：全部游戏分类 new
export const listGameCategory = (params) => {
  return request.get('/api/home/listGameCategory',params)
}
//游戏代练：全部游戏
export const listLevelingGame = (params) => {
  return request.get('/api/home/listLevelingGame',params)
}
//游戏专区：根据游戏名获取游戏
export const listGameById = (params) => {
	return request.get('/api/home/listGameAreaById',params)
}
//游戏代练：根据游戏名获取游戏
export const listLevelingGameById = (params) => {
  return request.get('/api/home/listGameLevelingAreaById',params)
}
//首页公告
export const subjectList = (params) => {
	return request.get('/api/home/subjectList',params)
}
//公告详细内容
export const subjectDetail = (params) => {
	return request.get('/api/home/subjectDetail',params)
}

// 极验验证码
export const geetest = (params) => {
  return request.post('/api/member/geetestInit?t=' + (new Date()).getTime(), params)
}

